<?php
declare(strict_types=1);

namespace App\Controller;

use App\Request\SignUpRequest;
use App\Service\UserService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\AutoController;

class UserController extends AbstractController
{
    /**
     * @var UserService
     */
    #[Inject]
    protected UserService $userService;

    public function signUp(SignUpRequest $signUpRequest) {
        //获取已验证的数据
        $validated = $signUpRequest->validated();

    }
}